﻿<UserControl x:Class="CredentialsManager.Views.RolesForUserView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:wi="clr-namespace:CredentialsManager.Controls.WorkingImage"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid Panel.ZIndex="2" HorizontalAlignment="Center" VerticalAlignment="Center"
            Style="{StaticResource HideIfNotLoadingStyle}">    
            <wi:WorkingImage />
        </Grid>
        <Grid Panel.ZIndex="1" Style="{StaticResource DisableIfLoadingStyle}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Label Grid.Row="0" Content="{Binding DisplayName}" />
            <ListBox Grid.Row="1" ItemsSource="{Binding Roles}" ItemTemplate="{StaticResource RoleDataTemplate}" />
        </Grid>
    </Grid>
</UserControl>
